package com.alibaba.algo.controller.user;

import com.alibaba.algo.apiimpl.user.SysUserServiceImpl;
import com.alibaba.algo.cooperation.common.BaseResult;
import com.alibaba.algo.cooperation.usercomponent.vo.req.user.AuthByUserReqVO;
import com.alibaba.algo.cooperation.usercomponent.vo.req.user.SelectResourceActionListByUserReqVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类SysUserController.java的实现描述：用户表 Controller
 *
 * @author nieganggang 2021-03-12 16:08:17
 */
@RestController
@RequestMapping(value = "/usercenter-admin-app/restapi")
public class RestApiController {

    @Autowired
    private SysUserServiceImpl sysUserService;
    @PostMapping("/selectResourceActionByUser")
    public BaseResult selectResourceActionByUser(@RequestBody SelectResourceActionListByUserReqVO vo){
        return sysUserService.selectResourceActionListByUser(vo);
    }

    @PostMapping("/authByUser")
    public BaseResult authByUser(@RequestBody AuthByUserReqVO authVO){
        return sysUserService.authByUser(authVO);
    }

}
